<admintpl file="_print_style"/>
<php>
	$leave_en_other = $leave_en = C('VACATION_TYPE_EN');
	$leave_ch = C('VACATION_TYPE');
    $leave_type_show=[102,109,110,104,101,103];//要显示在页面的几个常用假期
    foreach($leave_type_show as $k=>$v){
    	$leave_show_en[] = $leave_en[$v];
    	$leave_show_ch[] = $leave_ch[$v];
		unset($leave_en_other[$v]);
    }
   	$start_mon = date('Y/m/d',strtotime($start_mon));
	$end_mon = date('Y/m/d',strtotime($end_mon));
	$tbnum = 29;
	$leave_other=0;
</php>
<body style="min-width: 800px;">
	<div class="wrap js-check-wrap">
		
			<table class="table table-hover table-bordered table-list" border="1">
				<thead>
					<tr>
						<th width="5%" rowspan='2'>工号</th>
						<th width="5%" rowspan='2'>姓名</th>
						<th width="5%" rowspan='2'>团队</th>
						<th width="5%" rowspan='2'>部门</th>
						<th width="3%" colspan='2' rowspan='2'>考勤周期</th>
						<th width="3%" colspan='2'>应出勤</th>
						<th width="3%" colspan='3'>实际出勤</th>
						
						<th width="3%" rowspan='2'>超时工作小时</th>
						<th width="3%" rowspan='2'>准时在岗率</th>
						
						<th width="3%" colspan='2'>缺时</th>
						<th width="3%" colspan='2'>旷工</th>
						
						<th width="3%" colspan='2'>外出小时</th>
						
						<th width="3%" colspan='7'>请假</th>
						<th colspan='2'>工作日</th>
						<th colspan='2'>全月(含周末)</th>
						<th rowspan='2'>可补休工时</th>
					</tr>
					<tr>
						<th width="5%">天数</th>
						<th width="5%">小时</th>
						
						<th width="5%">实际天数</th>
						<th width="5%">实际工时</th>
						<th width="5%">有效工时</th>
						
						<th width="5%">缺时工时</th>
						<th width="5%">缺时率</th>
						
						<th width="5%">旷工次数</th>
						<th width="5%">旷工时数</th>
						
						<th width="5%">短途外出</th>
						<th width="5%">长途出差</th>
						
						<foreach name='leave_show_ch' item='lo'>
							<th width="5%">{$lo}</th>
						</foreach>
						<th width="5%">其他</th>
						<th>实际出勤率</th>
						<th>有效出勤率</th>
						<th>实际出勤率</th>
						<th>有效出勤率</th>
					</tr>
				</thead>
				<foreach name='list' item='vo' key='k'>
				<tr>
					<assign name="leave_other" value="0" />
					<td>&nbsp;{$vo.sn}</td>
					<td>{$vo.name}</td>
					<td>{$vo.team_name}</td>
					<td>{$vo.dep_name}</td>
					<td>{$vo.mon_start}</td>
					<td>{$vo.mon_end}</td>
					<td>{$vo.work_day}</td>
					<td>{$vo[work_day]*8}</td>
					<td>{$vo.worl_actual_day}</td>
					<td>{$vo.work_actual|get_hour = ###}</td>
					<td>{$vo.work_effect|get_hour = ###}</td>
					<td>{$vo.overtime|get_hour = ###}</td>
					<td>{$vo.work_effect_918_rate}</td>
					<td>{$vo.stu_absent|get_hour = ###}</td>
					<td>{$vo.stu_absent_rate}</td>
					<td>{$vo.absenteeism_num}</td>
					<td>{$vo.absenteeism_min|get_hour = ###}</td>
					<td>{$vo.leave_evection|get_hour = ###}</td>
					<td>{$vo.leave_long_distance|get_hour = ###}</td>
					<foreach name='leave_show_en' item='leo' key='k'>
						<td>{$vo[$leo]|get_hour = ###}</td>
					</foreach>
					<foreach name='leave_en_other' item='leoen' key='k'>
						<assign name="leave_other_" value="$leave_other +=$vo[$leoen]" />
					</foreach>
					<td>{$leave_other|get_hour = ###}</td>
					<td>{$vo.work_actual_rate}</td>
					<td>{$vo.work_effect_rate}</td>
					<td>{$vo.work_actual_rate_w}</td>
					<td>{$vo.work_effect_rate_w}</td>
					<td>{$vo['remain_overtime']}</td>
				</tr>
				
			</foreach>
				</table>
	</div>
</body>
</html>